// 权限配置，默认进行权限检查
export const enablePermission = true

// 服务接口地址
export const restUrl = '/api';//process.env.VUE_APP_BASE_API
// export const restUrl = 'http://www.dpidev.com';//开发环境

// 登录服务地址
// export const ssoUriPrefix = process.env.NODE_ENV === 'development' ?'http://192.168.2.40:18000/ycloud-oauth':'http://192.168.0.151:18000/ycloud-oauth';
export const ssoUriPrefix = `${process.env.VUE_APP_ssoUriPrefix}/ycloud-oauth`

export const authorityService = 'ycloud-authority'
export const iscServe = '' // 内网用户管理使用

// ISC集成令牌服务地址
// export const tokenUriPrefix = process.env.NODE_ENV === 'development' ?'http://192.168.2.40:18092':'http://192.168.0.151:18092'
export const tokenUriPrefix = process.env.NODE_ENV === 'development' ?'http://192.168.0.149:18092':'http://192.168.0.151:18092'

// 客户端身份标识，一般不需要修改
export const clientId = '1b2f3298686d4dfdbb1dc845fe1d00d4'
export const clientSecret = 'yVbe3AcXSSECaV5SUhBIs7Vh5pC3krIQkDL'
// export const clientId = 'yyc_ycloud-admin'

// 防重放开关
export const enablePreventRequestReplay = true

// 授权集成方式，支持oauth2和isc
export const authType = 'oauth2'

export const PubKey =
  '040ECAE82EA6BDC5FF6C90E6D8700F4F9BD44224E8F7F7576FA9B17CE823C18DD5C1D4F9CBF4EE23B3D3347C589036EE13E9497607D0F6C7B5CC655D0D250EDCE8'
// 国密加密公钥
export const PublicKey =
  '040ECAE82EA6BDC5FF6C90E6D8700F4F9BD44224E8F7F7576FA9B17CE823C18DD5C1D4F9CBF4EE23B3D3347C589036EE13E9497607D0F6C7B5CC655D0D250EDCE8'
export default {
  PublicKey,
  clientId
}

// app安装包下载地址
export const appDownloadUrl = process.env.VUE_APP_appDownloadUrl

// ios下载地址
export const iosDownloadUrl = process.env.VUE_APP_iosDownloadUrl

// 文件模板下载地址
export const templatesDownloadUrl = process.env.VUE_APP_TEMPLATES_DOWNLOAD_URL

